import request from '@/utils/request'

// 查询老师课程列表
export function listTeacherCourse(query) {
  return request({
    url: '/system/teacherCourse/list',
    method: 'get',
    params: query
  })
}

// 查询老师课程详细
export function getTeacherCourse(id) {
  return request({
    url: '/system/teacherCourse/' + id,
    method: 'get'
  })
}

// 新增老师课程
export function addTeacherCourse(data) {
  return request({
    url: '/system/teacherCourse',
    method: 'post',
    data: data
  })
}

// 修改老师课程
export function updateTeacherCourse(data) {
  return request({
    url: '/system/teacherCourse',
    method: 'put',
    data: data
  })
}

// 删除老师课程
export function delTeacherCourse(id) {
  return request({
    url: '/system/teacherCourse/' + id,
    method: 'delete'
  })
}

export function courseList() {
  return request({
    url: '/system/course/getCourseList',
    method: 'get'
  })
}

// 查询课程分类信息列表
export function teacherList() {
  return request({
    url: '/system/teacher/getTeacherList',
    method: 'get'
  })
}
